import { React } from "react";
import {
  BrowserRouter as Router,
  Route,
  Switch,
  Redirect,
} from "react-router-dom";
import "./i18n";
import "./App.scss";

import Login from "./pages/Login";
import Home from "./pages/Home";

function App() {
  return (
    <Router>
      <div className="App" style={{ height: "100%" }}>
        <Switch>
          <Route path="/login" component={() => <Login />} />
          <Route path="/gcps-cusweb" component={() => <Home />} />

          <Redirect to="/login" />
        </Switch>
      </div>
    </Router>
  );
}

export default App;
